package org.mnswf.events {
	
	import flash.events.Event;
	import org.mnswf.net.UDPPacket;
	
	/**
	 * @author Danny Patterson
	 */
	public class UDPDataEvent extends Event {
		
		public static const DATA:String = "dataEvent";
		
		public var packet:UDPPacket;
		
		/**
		 * @param type (String)
		 * @param packet (UDPPacket)
		 * @param bubbles (Boolean) [optional]
		 * @param cancelable (Boolean) [optional]
		 */
		public function UDPDataEvent(type:String, packet:UDPPacket, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			this.packet = packet;
		}
		
		/**
		 * @see flash.events.Event#clone
		 */
		public override function clone():Event {
			return new UDPDataEvent(type, packet, bubbles, cancelable);
		}
		
	}
	
}